﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<div style="padding-top: 35px; padding-left: 10px;">
    <div>
        <%=Html.Hidden("creater_id", ViewData["creater_id"])%>
    </div>
    红色：未读
    <br />
    绿色：已读
    <p style="margin: 5px 0;">
        收件人：<%using (System.Data.DataTable dt_msgmx = ViewData["dt_msgmx"] as System.Data.DataTable)
              {
                  for (int i = 0; i < dt_msgmx.Rows.Count; i++)
                  {
                      if (dt_msgmx.Rows[i]["已读标志"].ToString() == "1")
                      { %>
        <span style="background-color: Green;">
            <%=dt_msgmx.Rows[i]["接收人"].ToString()%></span>
        <% 
            }
                      else
                      {%>
        <span style="background-color: Red;">
            <%=dt_msgmx.Rows[i]["接收人"].ToString()%></span>
        <%}
                  }
              } %>
    </p>
    <p style="margin: 5px 0;">
        标题：<%=Html.Label(ViewData["title"].ToString()) %></p>
    <p style="margin: 5px 0;">
        时间：<%=Html.Label(ViewData["sendtime"].ToString()) %></p>
    <p style="margin: 5px 0;">
        发件人：<%=ViewData["creater_name"].ToString() %></p>
    <p style="margin: 5px 0;">
        内容：<%=ViewData["content"].ToString()%></p>
    <p style="margin: 5px 0;">
        附件:<%= ViewData["msg_appendix"]%></p>
</div>
